package com.esgov.chatbot.entity.chatbot;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Eric Lao
 * @since 2023/5/30 11:23
 */
@Data
@ApiModel("FAQ反馈请求参数")
public class FeedbackRequest {

    @NotBlank(message = "参数sessionId不能为空")
    @ApiModelProperty(value = "本次人机会话id", required = true)
    private String sessionId;

    @NotBlank(message = "参数messageId不能为空")
    @ApiModelProperty(value = "被反馈的消息的id", required = true)
    private String messageId;

    @NotNull(message = "参数feedback不能为空")
    @ApiModelProperty(value = "反馈：1点赞，2点踩", required = true)
    private Integer feedback;

    @ApiModelProperty("点赞、点踩的内容")
    private String feedbackContent;
}
